<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css">
        .dad {
            display: flex;
            justify-content: center;
            align-items: center;
        }
    </style>
</head>

<body>
    <div class="dad">
    <script>
        document.write("<table>");
        for (var i = 1; i <= 9; i++) {
            document.write("<tr>");
            for (var x = i; x <= 9; x++) {
                document.write("<td>" + i + "x" + x + "=" + i * x + "</td>");

            } document.write('</tr>');
        }
        document.write("<table>");
    </script>
    </div>
</body>

</html>